package entities;

import javax.persistence.Id;

import com.googlecode.objectify.annotation.Cached;
import com.googlecode.objectify.annotation.Indexed;
import com.googlecode.objectify.annotation.Unindexed;

@Cached
public class Blog {
	@Id private String url = "";	//url blog
	@Indexed private String username = "";  //user name dang nhap vao blog
	@Unindexed private String password = ""; //pass dang nhap vao blog
	@Unindexed private String blogId = ""; //blogid ap dung voi blogspot
	@Indexed private String userBlog = ""; //ten user quan tri blog
	@Indexed private String type = "";		//loai blog (blogger,wordpress,blogurl)
	@Indexed private String field = "";		//linh vuc hoat dong cua blog
	@Indexed private int allow = 0;     //Allow Guest Post
	public int getAllow() {
		return allow;
	}
	public void setAllow(int allow) {
		this.allow = allow;
	}
	public String getField() {
		return field;
	}
	public void setField(String field) {
		this.field = field;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getBlogId() {
		return blogId;
	}
	public void setBlogId(String blogId) {
		this.blogId = blogId;
	}
	public String getUserBlog() {
		return userBlog;
	}
	public void setUserBlog(String userBlog) {
		this.userBlog = userBlog;
	}
}
